<!--<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"/> 
    <title>微信支付</title>
    <style>
    	body,button{font-family: "微软雅黑";}
    	#lead{display: none;position: fixed;width: 100%;height: 100%;top: 0;left: 0;}
    </style>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
			'getBrandWCPayRequest',
			{$jsApiParameters},
			function(res){
				if(res.err_msg=="get_brand_wcpay_request:ok"){
					$.post(
						"/HPay/wxpayOK",'',function(data){
							location.href="/HUser/user";
						}
					);
				}else{
					location.href="/HPay/wxFail";
				}
				WeixinJSBridge.log(res.err_msg);
//				alert("支付接口："+res.err_code+res.err_desc+res.err_msg);
			}
		);
	}

	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
		        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
		    }
		}else{
		    jsApiCall();
		}
	}
	</script>
	<script type="text/javascript">
	//获取共享地址
	function editAddress()
	{
		WeixinJSBridge.invoke(
			'editAddress',
			{$editAddress},
			function(res){
				var value1 = res.proviceFirstStageName;
				var value2 = res.addressCitySecondStageName;
				var value3 = res.addressCountiesThirdStageName;
				var value4 = res.addressDetailInfo;
				var tel = res.telNumber;
				
				alert(value1 + value2 + value3 + value4 + ":" + tel);
			}
		);
	}
	
	window.onload = function(){
		console.log({$jsApiParameters});
//		wx.config({
//		    debug: false, 
//		    appId: '{$jsconfig["appId"]}', 
//		    timestamp: '{$jsconfig["timestamp"]}', 
//		    nonceStr: '{$jsconfig["nonceStr"]}', 
//		    signature: '{$jsconfig["signature"]}',
//		    jsApiList: ['onMenuShareTimeline',
//		    'onMenuShareAppMessage',
//		    'onMenuShareQQ',
//		    'onMenuShareWeibo',
//		    'onMenuShareQZone','chooseWXPay'] 
//		});
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', editAddress, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', editAddress); 
		        document.attachEvent('onWeixinJSBridgeReady', editAddress);
		    }
		}else{
			editAddress();
		}
	};
	
	</script>
</head>
<body>
	<div style="margin-top: 150px;"></div>
	<img id="lead" src="__TMPL__Public/images/lead.png"/>
	<center>
		<font color="#333">
			<b>该笔订单支付金额为
				<br />
				<span style="font-size:30px;margin: 0 10px;">{$fee}.00</span>元</b>
		</font>
		
	</center>
    
	<div align="center">
		<button style="margin-top: 30px; width:210px; height:50px; border-radius: 15px;background-color:#76D05E; border:0px #FE6714 solid; cursor: pointer;  color:white;  font-size:16px;" type="button" onclick="callpay()" >立即支付</button>
	</div>
</body>
</html>-->